{template 'header'}
<div class="main">
  <div class="mleft">
    <dl class="fir">
      <dt>类型：</dt>
      <dd id="catid">
        <div><a href="<?php echo new_parse_url('cid=0', url());?>"{if $cid==0}class="current"{/if}>全部</a></div>
        <div><a href="<?php echo new_parse_url('cid=1', url());?>"{if $cid==1}class="current"{/if}>找家教</a></div>
        <div><a href="<?php echo new_parse_url('cid=2', url());?>"{if $cid==2}class="current"{/if}>做家教</a></div>
      </dd>
    </dl>
    <dl>
      <dt>类别：</dt>
      <dd id="objecttype">
        <div><a {if $obj==0}class="current" {/if}href="<?php echo new_parse_url('o=0', url());?>">全部</a></div>
        <div><a {if $obj==1}class="current" {/if}href="<?php echo new_parse_url('o=1', url());?>">小学家教</a></div>
        <div><a {if $obj==2}class="current" {/if}href="<?php echo new_parse_url('o=2', url());?>">初中家教</a></div>
        <div><a {if $obj==3}class="current" {/if}href="<?php echo new_parse_url('o=3', url());?>">中考家教</a></div>
        <div><a {if $obj==4}class="current" {/if}href="<?php echo new_parse_url('o=4', url());?>">高中家教</a></div>
        <div><a {if $obj==5}class="current" {/if}href="<?php echo new_parse_url('o=5', url());?>">高考冲刺</a></div>
        <div><a {if $obj==6}class="current" {/if}href="<?php echo new_parse_url('o=6', url());?>">素质/特长辅导</a></div>
        <div><a {if $obj==7}class="current" {/if}href="<?php echo new_parse_url('o=7', url());?>">小升初家教</a></div>
        <div><a {if $obj==8}class="current" {/if}href="<?php echo new_parse_url('o=8', url());?>">奥数</a></div>
      </dd>
    </dl>
    <dl>
      <dt>方式：</dt>
      <dd id="pxfangshi">
        <div><a {if $px==0}class="current" {/if}href="<?php echo new_parse_url('px=0', url());?>">全部</a></div>
        <div><a {if $px==1}class="current" {/if}href="<?php echo new_parse_url('px=1', url());?>">辅导班</a></div>
        <div><a {if $px==2}class="current" {/if}href="<?php echo new_parse_url('px=2', url());?>">一对一</a></div>
        <div><a {if $px==3}class="current" {/if}href="<?php echo new_parse_url('px=3', url());?>">大学生家教</a></div>
        <div><a {if $px==4}class="current" {/if}href="<?php echo new_parse_url('px=4', url());?>">外教</a></div>
        <div><a {if $px==5}class="current" {/if}href="<?php echo new_parse_url('px=5', url());?>">陪读</a></div>
      </dd>
    </dl>
    <dl>
      <dt>价格：</dt>
      <dd id="price">
        <div><a {if $p==0}class="current" {/if}href="<?php echo new_parse_url('p=0', url());?>">全部</a></div>
        <div><a {if $p==1}class="current" {/if}href="<?php echo new_parse_url('p=1', url());?>">面议</a></div>
        <div><a {if $p==2}class="current" {/if}href="<?php echo new_parse_url('p=2', url());?>">低于100</a></div>
        <div><a {if $p==3}class="current" {/if}href="<?php echo new_parse_url('p=3', url());?>">101-500</a></div>
        <div><a {if $p==4}class="current" {/if}href="<?php echo new_parse_url('p=4', url());?>">501-1000</a></div>
        <div><a {if $p==5}class="current" {/if}href="<?php echo new_parse_url('p=5', url());?>">1000以上</a></div>
      </dd>
    </dl>
    <!-- 排序标签开始 -->
    <div class="headnav">
    	<ul>
        	<li class="fire">排序：</li>
        	<li {if $lo=='0'}class="current" {/if}id="headnav_0">默认</li>
        	<li {if $lo=='1'}class="current" {/if}id="headnav_1">好评度</li>
        	<li {if $lo=='2'}class="current" {/if}id="headnav_2">价格</li>
        	<li {if $lo=='3'}class="current" {/if}id="headnav_3">时间</li>
        </ul>
    </div>
    <!-- 内容列表start -->
    {$s}
	<!-- 内容列表end -->
  </div>
  <div class="mright">
    <div class="sidebar">
      <div class="in">
      	<div class="hot-title"><strong>热门点击</strong></div>
      	<dl>
        {loop $hot_content as $hh_content}
        	<dd><a href="?m=index&c=show&id={$hh_content['id']}">{$hh_content['title']}</a></dd>
        {/loop}
        </dl>
      	<div class="hot-title"><strong>精华推荐</strong></div>
        <dl>
        {loop $jinghua as $jinghua_c}
        	<dd><a href="?m=index&c=show&id={$jinghua_c['id']}">{$jinghua_c['title']}</a></dd>
        {/loop}
        </dl>
        <div class="hot-title"><strong>网站公告</strong></div>
        <dl>
        {loop $announ_content as $announ_content_c}
        	<dd><a href="?m=index&c=show&id={$announ_content_c['id']}">{$announ_content_c['title']}</a></dd>
        {/loop}
        </dl>
      </div>
    </div>
  </div>
</div>
<!-- 友情链接开始 -->
<div class="flink">
  <div class="outer hot">
    <div class="inner">
      <div class="ht">
        <h3>友情链接</h3>
        <a class="more" href="javascript:;">全部链接</a> <span class="more">|</span> <a class="more" href="javascript:;">申请加入</a></div>
      <div class="hc">
        <dl>
          <dd><a href="http://blog.amiaoagou.com" target="_blank">联系我们</a></dd>
          <dd><a href="http://www.matoin.com" target="_blank">猫头鹰</a></dd>
          <dd><a href="http://www.amiaoagou.com/jiajiao.zip" target="_blank">本站源码下载</a></dd>
          <dd><a href="http://amiaoagou.com/danx/" target="_blank">淡香相册</a></dd>
          <dd><a href="http://www.hafidxu.com" target="_blank">海菲网志</a></dd>
          <dd><a href="http://www.moemoo.com" target="_blank">萌宠社区</a></dd>
        </dl>
        <div class="c"></div>
      </div>
    </div>
  </div>
</div>
<!-- 友情链接结束 --> 
{template 'footer'}
<script type="text/javascript">

$(function()
{
	$('#catid div a').click(function()
	{
		$(this).addClass('current');
		$('#catid div a').not($(this)).removeClass('current');
	});
	$('#objecttype div a').click(function()
	{
		$(this).addClass('current');
		$('#objecttype div a').not($(this)).removeClass('current');
	});
	$('#pxfangshi div a').click(function()
	{
		$(this).addClass('current');
		$('#pxfangshi div a').not($(this)).removeClass('current');
	});
	$('#price div a').click(function()
	{
		$(this).addClass('current');
		$('#price div a').not($(this)).removeClass('current');
	});
	$('.headnav ul li:not(".fire")').click(function()
	{
		$(this).addClass('current');
		$('.headnav ul li:not(".fire")').not($(this)).removeClass('current');
	});
	$('#headnav_0').click(function()
	{
		var url = "<?php echo new_parse_url('lo=0', url());?>";
		window.location.href = url;
	});
	$('#headnav_1').click(function()
	{
		var url = "<?php echo new_parse_url('lo=1', url());?>";
		window.location.href = url;
	});
	$('#headnav_2').click(function()
	{
		var url = "<?php echo new_parse_url('lo=2', url());?>";
		window.location.href = url;
	});
	$('#headnav_3').click(function()
	{
		var url = "<?php echo new_parse_url('lo=3', url());?>";
		window.location.href = url;
	});
});
</script>